package com.example.instantmessage;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.example.instantmessage.login.LoginActivity;
import com.tencent.imsdk.v2.V2TIMManager;
import com.tencent.imsdk.v2.V2TIMSDKConfig;
import com.tencent.imsdk.v2.V2TIMSDKListener;

//没用

public class HomeActivity extends AppCompatActivity implements View.OnClickListener {
    private Button loginBtn, registerBtn;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);
        loginBtn = findViewById(R.id.login_btn_home_activity);
        registerBtn = findViewById(R.id.register_btn_home_activity);

        loginBtn.setOnClickListener(this);
        registerBtn.setOnClickListener(this);




    }



    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.login_btn_home_activity:
                Intent loginIntent = new Intent(HomeActivity.this, LoginActivity.class);
                startActivity(loginIntent);
                break;
            case R.id.register_btn_home_activity:
                Intent RegistIntent = new Intent(HomeActivity.this, RegisterActivity.class);
                break;
            default:
                break;
        }
    }
}